package com.luo.chengrui.module.sa.convert.datapermission;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;

import com.luo.chengrui.module.sa.dal.dataobject.datapermission.DataPermissionConfigViewDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.luo.chengrui.module.sa.controller.admin.datapermission.vo.*;
import com.luo.chengrui.module.sa.dal.dataobject.datapermission.DataPermissionConfigDO;

/**
 * 数据权限配置 Convert
 *
 * @author 诚睿
 */
@Mapper
public interface DataPermissionConfigConvert {

    DataPermissionConfigConvert INSTANCE = Mappers.getMapper(DataPermissionConfigConvert.class);

    DataPermissionConfigDO convert(DataPermissionConfigCreateReqVO bean);

    DataPermissionConfigDO convert(DataPermissionConfigUpdateReqVO bean);

    DataPermissionConfigRespVO convert(DataPermissionConfigViewDO bean);

    DataPermissionConfigRespVO convert(DataPermissionConfigDO bean);

    List<DataPermissionConfigRespVO> convertList(List<DataPermissionConfigDO> list);

    PageResult<DataPermissionConfigRespVO> convertPage(PageResult<DataPermissionConfigDO> page);

    PageResult<DataPermissionConfigRespVO> convertPage2(PageResult<DataPermissionConfigViewDO> page);

    List<DataPermissionConfigExcelVO> convertList02(List<DataPermissionConfigDO> list);

}
